#Message{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  .left{
    width: 400px;
    //border: 1px solid brown;
    display: flex;
    flex-direction: column;
    align-items: center;
    .searchBox{
      margin-top: 56px;
      .el-button {
        margin-left: 10px;
        transition: 0.3s;
        background-color: var(--bg-color);
        border-color: var(--input-focus-shadow);
      }
      /deep/.el-button:hover {
        box-shadow: 6px 6px 12px var(--input-focus-shadow), -6px -6px 12px var(--white);
      }

    }
    .chatList{
      width: 90%;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-top: 42px;
      h3{
        width: 100%;
        font-size: 25px;
        font-weight: 400;
        color: var(--text-color);
        margin-bottom: 40px;
      }
      .chatList-ul{
        width: 100%;
        height: 550px;
        overflow: hidden;
        //隐藏滚动条
        overflow: auto;  /* 启用滚动条 */
        scrollbar-width: none;  /* 隐藏 Firefox 的滚动条 */
        -ms-overflow-style: none;  /* 隐藏 IE 和 Edge 的滚动条 */
        .chatList-ul::-webkit-scrollbar {  /* 隐藏 Chrome 和 Safari 的滚动条 */
          display: none;
        }
        li{
          width: 100%;
          height: 80px;
          border-radius: 10px;
          display: flex;
          flex-direction: row;
          align-items: center;
          margin-bottom: 40px;
          padding: 15px;
          border: 1px solid var(--border-color);
          .imgBox{
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 1px solid var(--border-color);
            img{
              width: 100%;
              height: 100%;
            }
          }
          .textBox{
            height: 50px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 200px;
            margin-left: 30px;
            .username{
              color: var(--text-color);
              font-size: 18px;
            }
            .msg{
              color: var(--icon-color);
              font-size: 14px;
              //超出一行隐藏,省略号代替
              overflow: hidden;
              text-overflow: ellipsis;
              line-height: 24px;
              white-space: nowrap;
              @media screen and (max-width: 500px) {
                font-size: 12px;
              }
            }
          }
          .timeBox{
            height: 50px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            color: var(--text-color);
            font-size: 14px;
            .time{
              color: var(--icon-color);
            }
            .num{
              color: var(--text-error-color);
            }
          }
        }
        li:hover{
          background-color: var(--btn-color);
          transition: 0.3s;
          box-shadow: 0 0 10px 0 rgba(0,136,255);
          color: #ffffff;
          cursor: pointer;
          .textBox .username , .msg{
            color: #ffffff;
          }
          .timeBox .time{
            color: #ffffff;
          }
        }
        li.selected {
          background-color:var(--btn-color);
          transition: 0.3s;
          box-shadow: 0 0 10px 0 var(--btn-color);
          .textBox .username , .msg{
            color: #ffffff;
          }
          .timeBox .time{
            color: #ffffff;
          }
        }
      }
      .message-container {
        width: 100%;
        height: 500px;
        overflow: auto;  /* 启用滚动条 */
        scrollbar-width: none;  /* 隐藏 Firefox 的滚动条 */
        -ms-overflow-style: none;  /* 隐藏 IE 和 Edge 的滚动条 */

        &::-webkit-scrollbar {  /* 隐藏 Chrome 和 Safari 的滚动条 */
          display: none;
        }
      }
    }
  }
  .right{
    flex: 1;
    //只显示左边框
    border-left: 1px solid var(--border-color);

    display: flex;
    flex-direction: column;
    align-items: center;
    .title{
      width: 90%;
      height: 50px;
      //border: 1px solid var(--border-color);
      margin-top: 56px;
      display: flex;
      flex-direction: row;
      .imgBox{
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 1px solid var(--border-color);
        img{
          width: 100%;
          height: 100%;
        }
      }
      .textBox{
        height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 200px;
        margin-left: 30px;
        .username{
          color: var(--text-color);
          font-size: 18px;
        }
        .signature{
          color: var(--icon-color);
          font-size: 14px;
        }
      }
    }
    .chat{
      width: 90%;
      height: 610px;
      margin-top: 105px;
      border: 1px solid var(--border-color);
      //浅灰色内阴影
      box-shadow: 0 0 10px 0 rgba(204,204,204);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      .message-container {
        width: 100%;
        height: 500px;
        overflow: auto;  /* 启用滚动条 */
        scrollbar-width: none;  /* 隐藏 Firefox 的滚动条 */
        -ms-overflow-style: none;  /* 隐藏 IE 和 Edge 的滚动条 */

        &::-webkit-scrollbar {  /* 隐藏 Chrome 和 Safari 的滚动条 */
          display: none;
        }
      }
      .message {
        max-width: 80%;  /* 限制消息的最大宽度 */
        padding: 30px;
        margin: 20px auto;
        border-radius: 10px;
        position: relative;

        &.message-sent {
          background-color: var(--input-focus-shadow);
          align-self: flex-end;
          text-align: right;
        }

        &.message-received {
          background-color: #f1f1f1;
          align-self: flex-start;
          text-align: left;
        }
      }
      .input_message{
        width: 90%;
        height: 50px;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 40px;
        .el-input-wrapper{
        }
        .swim{
          margin-right: 50px;
        }
        .el-button{
          background-color: var(--bg-color);
          margin-left: 50px;
          box-shadow: -3px -3px 8px #ffffff,8px 8px 16px #d1d9e6;
        }
      }
    }
  }
  // 表情包样式
  .emoji-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    span {
      cursor: pointer;
      font-size: 24px;
    }
  }

}